package com.biz.primus.ms.tms.dao.po;

import com.biz.primus.model.cat.enums.CatStatus;
import com.biz.primus.model.cat.enums.CatSaleStatusEnum;
import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * @author yanweijin
 * @date 2017/9/12
 */
@Entity
@Table(name = "example_cat")
@Data
public class Cat extends BaseEntity{

	@Column(length = 64)
	private String name;

	private Integer age;

	@Enumerated(EnumType.STRING)
	@Column(length = 32)
	private CatStatus status;

    @Enumerated(EnumType.STRING)
    @Column(length = 32)
	private CatSaleStatusEnum saleStatus;
}
